﻿@using DevExpress.Blazor

<div class="demo-description" id="DisplayFooter">
    <h2><DemoNavLink Link="Popup#DisplayFooter" />Popup - Display Footer</h2>
    <p>
        Use the <a class="helplink" target="_blank" href="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxPopup.FooterTemplate">FooterTemplate</a> property to specify the content of a pop-up window's footer.
    </p>
</div>

<div class="card demo-card demo-card-shadow">
    <div class="card-body p-0">
        <div @onclick="@(() => PopupVisible = true)">
            <div class="target-container"></div>
        </div>
        <DxPopup HeaderText="Header"
                 @bind-Visible="@PopupVisible">
            <Content>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet metus vel nisi blandit tincidunt vel efficitur purus. Nunc nec turpis tempus, accumsan orci auctor, imperdiet mauris. Fusce id purus magna.</p>
            </Content>
            <FooterTemplate>
                <DxButton RenderStyle="ButtonRenderStyle.Primary" @onclick="@(() => PopupVisible = false)" Text="OK" />
            </FooterTemplate>
        </DxPopup>
    </div>
</div>

<CodeSnippet_Popup_FooterCustomization />

@code {
    bool PopupVisible { get; set; }
}
